/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *     http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import 'theme-mixin';

:host {
  display: block;
}

.themeMixin({
  .content {
    width: 100%;
    position: relative;

    &.header-mode {
      .operation {
        display: none;
      }
    }
  }
  .rename {
    width: 200px;
  }
  nz-tree {
    display: block;
  }
  nz-input-group {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 6px;
  }
  .node {
    line-height: 24px;
    display: inline-block;
    width: calc(~"100% - 24px");

    &.not-matched {
      opacity: 0.5;
      filter: grayscale(1);
    }

    .operation {
      margin-left: 12px;

      i {
        font-size: 12px;
        display: none;

        &:hover {
          color: @link-active-color;
        }
      }
    }

    &.active {
      .name {
        color: @link-active-color;
      }
    }

    &:hover, &.active {
      .operation {
        i {
          display: inline-block;
        }
      }
    }
  }
});
